<?php
require_once(dirname(dirname(dirname(dirname(__FILE__)))) . '/app.php');

need_manager();
$condition = array();
list($pagesize, $offset, $pagestring) = pagestring($count, 30);

$banners = DB::LimitQuery('banner', array(
	'condition' => $condition,
	'order' => 'ORDER BY sort_order DESC, id DESC',
	'offset' => $offset,
	'pagesize' => $pagesize,
));

include template('manage_system_banner_index');
